|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.doclinx.jftr.Log
Class for diagnostic logging of TeraXML debug information output. Note that the class is thread safe.
Field Summary | |
static int |
CRITICAL
Only output critical messages. |
static java.lang.String |
LOG
Default log file name. |
java.lang.String |
logName
|
static int |
NONE
NO debug output. |
static int |
STANDARD
Only output critical+standard messages. |
static int |
VERBOSE
Output All messages. |
Constructor Summary | |
Log()
Default Constructor producing NO log file information. |
|
Log(com.doclinx.jftr.Log l)
Constructor that opens a log file copy. |
|
Log(java.io.PrintWriter pw,
java.lang.String logName,
int severity)
Constructor that opens a log file copy from a PrintWriter. |
|
Log(java.lang.String fileName)
Constructor that opens a log file and sets STANDARD severity. |
|
Log(java.lang.String fileName,
int level)
Constructor that openes a log file and sets severity level. |
Method Summary | |
void |
close(boolean delete)
Close log file and optionally delete. |
void |
exception(java.lang.String sMsg,
java.lang.Throwable t)
|
void |
finalize()
|
void |
flush()
Flush the log file buffers to disk. |
int |
getLevel()
Return current debug level. |
boolean |
isOpened()
Checks to see if log file is opened. |
void |
print(java.lang.String sMsg)
Output diagnostic information regardless of priority settings. |
void |
print(java.lang.String sMsg,
int level)
Output diagnostic information message at specified priority. |
void |
printDate(java.lang.String sMsg,
int level)
Output diagnostic information message at specified priority. |
void |
reopen()
Re-opens a closed log. |
int |
setLevel(int newLevel)
Set current debug level. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOG
public static final int NONE
public static final int CRITICAL
public static final int STANDARD
public static final int VERBOSE
public java.lang.String logName
Constructor Detail |
public Log(java.lang.String fileName, int level)
fileName
- Output log file. If null, use default name.level
- Severity level that controls amount of debug information.public Log(java.lang.String fileName)
fileName
- Output log file. If null, use default name.public Log(com.doclinx.jftr.Log l)
l
- Output log object to copy.public Log(java.io.PrintWriter pw, java.lang.String logName, int severity)
pw
- PrinterWriter object to copy.logName
- Name of log file.public Log()
Method Detail |
public void close(boolean delete)
delete
- If true, the log file is deleted.public void print(java.lang.String sMsg, int level)
sMsg
- String message to output.level
- Priority level of message.severity codes.
public void printDate(java.lang.String sMsg, int level)
sMsg
- String message to output.level
- Priority level of message.severity codes.
public void print(java.lang.String sMsg)
sMsg
- String message to output.public void exception(java.lang.String sMsg, java.lang.Throwable t)
public void finalize()
finalize
in class java.lang.Object
public void reopen()
public boolean isOpened()
public void flush()
public int setLevel(int newLevel)
public int getLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |